﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WareHouse.Domain.Procurements
{
    /// <summary>
    /// 采购退货表
    /// </summary>
    [SugarTable("ProcurementReturn")]
    public class ProcurementReturn
    {
        /// <summary>
        /// 采购退货ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public long ProcurementReturnId { get; set; }

        /// <summary>
        /// 采购ID 外键
        /// </summary>
        public long ProcurementId { get; set; }

        /// <summary>
        /// 产品ID 外键
        /// </summary>
        public long ProductId { get; set; }

        /// <summary>
        /// 制单人
        /// </summary>
        [SugarColumn(Length = 30)]
        public string PrepareName { get; set; }

        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime PrepareDate { get; set; }

        /// <summary>
        /// 发货日期
        /// </summary>
        public DateTime ShipmentsDate { get; set; }

        /// <summary>
        /// 退货数
        /// </summary>
        public int ReturnNumber { get; set; }

        /// <summary>
        /// 总额
        /// </summary>
        public decimal ReturnSum { get; set; }

        /// <summary>
        /// 采购单号
        /// </summary>
        [SugarColumn(Length = 50)]
        public string ProcurementCode { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 审核原因
        /// </summary>
        public string AuditReason { get; set; }
    }
}
